package com.lsj.gulimall.ware.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lsj.common.utils.PageUtils;
import com.lsj.gulimall.ware.entity.WareSkuEntity;
import com.lsj.gulimall.ware.vo.SkuHasStockVo;

import java.util.List;
import java.util.Map;

/**
 * 商品库存
 *
 * @author lsj
 * @email 1326646663@qq.com
 * @date 2022-01-06 16:57:20
 */
public interface WareSkuService extends IService<WareSkuEntity> {

    PageUtils queryPage(Map<String, Object> params);

    /**
     * 查看该skuIds 是否有库存
     * @param skuIds
     * @return
     */
    List<SkuHasStockVo> getSkuHasStock(List<Long> skuIds);

    void addStock(Long skuId, Long wareId, Integer skuNum);
}

